Request For Payment Outbound
The RequestForPayment API enables to request for a payment from the sender.
Method: POST
{{URL}}/PLMASTER/rpc/paymentv2
Headers
Name | Value |
---|---|
Content-Type | application/json |
Example
Payload Parameters
- cURL
- C#
- Go
- NodeJs
curl --location '{{URL}}/PLMASTER/rpc/paymentv2' \
--header 'Content-Type: application/json' \
--data-raw '{"notes":"Salary12478","product":"PL","program":"100000000541001","transactionDateTime":"2021-12-23 12:33:41","channel":"CLEARING_HOUSE","transactionType":"RTP_RFP_OUT","reference":"{{reference}}","transactionAmount":{"amount":"200","currency":"USD"},"paymentInfo":{"expDate":"2024-04-09"},"processor":"TCH","senderType":"BUSINESS","debtorAccount":{"institution":{"identification":"234567891","name":"TCH","identificationType":"ABA"},"identification":"652543123165","identificationType":"ACCOUNT_NUMBER"},"debtor":{"firstName":"fayaz","lastName":"Saeed","identification":"134222322","middleName":"","identificationType":"SSN","userType":"INDIVIDUAL"},"creditorAccount":{"institution":{"identification":"101115399","name":"ITALBANK","identificationType":"ABA"},"identification":"200812498478915","identificationType2":"CHECKING","identificationType":"ACCOUNT_NUMBER"},"creditor":{"firstName":"Hafiz","lastName":"Saeed","identification":"254178554","middleName":"","identificationType":"SSN","userType":"INDIVIDUAL"},"creditorContact":{"primaryPhone":"1253674563","primaryEmail":"steve-woz@rtp-tp.com"},"creditorPostalAddress":{"zipCode":"66614","city":"Topeka","addressType":"HOUSE","countryCode":"840","addressLine1":"2745 SW cross VILLA WEST","addressLine2":"304 street","state":"KS"}}'
var options = new RestClientOptions("{{URL}}")
{
MaxTimeout = -1,
};
var client = new RestClient(options);
var request = new RestRequest("/PLMASTER/rpc/paymentv2", Method.Post);
request.AddHeader("Content-Type", "application/json");
var body = @"{
" + "\n" +
@" ""notes"": ""Salary12478"",
" + "\n" +
@" ""product"": ""PL"",
" + "\n" +
@" ""program"": ""100000000541001"",
" + "\n" +
@" ""transactionDateTime"": ""2021-12-23 12:33:41"",
" + "\n" +
@" ""channel"": ""CLEARING_HOUSE"",
" + "\n" +
@" ""transactionType"": ""RTP_RFP_OUT"",
" + "\n" +
@" ""reference"": ""{{reference}}"",
" + "\n" +
@" ""transactionAmount"": {
" + "\n" +
@" ""amount"": ""200"",
" + "\n" +
@" ""currency"": ""USD""
" + "\n" +
@" },
" + "\n" +
@" ""paymentInfo"": {
" + "\n" +
@" ""expDate"": ""2024-04-09""
" + "\n" +
@" },
" + "\n" +
@" ""processor"": ""TCH"",
" + "\n" +
@" ""senderType"": ""BUSINESS"",
" + "\n" +
@" ""debtorAccount"": {
" + "\n" +
@" ""institution"": {
" + "\n" +
@" ""identification"": ""234567891"",
" + "\n" +
@" ""name"": ""TCH"",
" + "\n" +
@" ""identificationType"": ""ABA""
" + "\n" +
@" },
" + "\n" +
@" ""identification"": ""652543123165"",
" + "\n" +
@" ""identificationType"": ""ACCOUNT_NUMBER""
" + "\n" +
@" },
" + "\n" +
@" ""debtor"": {
" + "\n" +
@" ""firstName"": ""fayaz"",
" + "\n" +
@" ""lastName"": ""Saeed"",
" + "\n" +
@" ""identification"": ""134222322"",
" + "\n" +
@" ""middleName"": """",
" + "\n" +
@" ""identificationType"": ""SSN"",
" + "\n" +
@" ""userType"": ""INDIVIDUAL""
" + "\n" +
@" },
" + "\n" +
@" ""creditorAccount"": {
" + "\n" +
@" ""institution"": {
" + "\n" +
@" ""identification"": ""101115399"",
" + "\n" +
@" ""name"": ""ITALBANK"",
" + "\n" +
@" ""identificationType"": ""ABA""
" + "\n" +
@" },
" + "\n" +
@" ""identification"": ""200812498478915"",
" + "\n" +
@" ""identificationType2"": ""CHECKING"",
" + "\n" +
@" ""identificationType"": ""ACCOUNT_NUMBER""
" + "\n" +
@" },
" + "\n" +
@" ""creditor"": {
" + "\n" +
@" ""firstName"": ""Hafiz"",
" + "\n" +
@" ""lastName"": ""Saeed"",
" + "\n" +
@" ""identification"": ""254178554"",
" + "\n" +
@" ""middleName"": """",
" + "\n" +
@" ""identificationType"": ""SSN"",
" + "\n" +
@" ""userType"": ""INDIVIDUAL""
" + "\n" +
@" },
" + "\n" +
@" ""creditorContact"": {
" + "\n" +
@" ""primaryPhone"": ""1253674563"",
" + "\n" +
@" ""primaryEmail"": ""steve-woz@rtp-tp.com""
" + "\n" +
@" },
" + "\n" +
@" ""creditorPostalAddress"": {
" + "\n" +
@" ""zipCode"": ""66614"",
" + "\n" +
@" ""city"": ""Topeka"",
" + "\n" +
@" ""addressType"": ""HOUSE"",
" + "\n" +
@" ""countryCode"": ""840"",
" + "\n" +
@" ""addressLine1"": ""2745 SW cross VILLA WEST"",
" + "\n" +
@" ""addressLine2"": ""304 street"",
" + "\n" +
@" ""state"": ""KS""
" + "\n" +
@" }
" + "\n" +
@"}";
request.AddStringBody(body, DataFormat.Json);
RestResponse response = await client.ExecuteAsync(request);
Console.WriteLine(response.Content);
package main
import (
"fmt"
"strings"
"net/http"
"io/ioutil"
)
func main() {
url := "{{URL}}/PLMASTER/rpc/paymentv2"
method := "POST"
payload := strings.NewReader(`{`+"
"+`
"notes": "Salary12478",`+"
"+`
"product": "PL",`+"
"+`
"program": "100000000541001",`+"
"+`
"transactionDateTime": "2021-12-23 12:33:41",`+"
"+`
"channel": "CLEARING_HOUSE",`+"
"+`
"transactionType": "RTP_RFP_OUT",`+"
"+`
"reference": "{{reference}}",`+"
"+`
"transactionAmount": {`+"
"+`
"amount": "200",`+"
"+`
"currency": "USD"`+"
"+`
},`+"
"+`
"paymentInfo": {`+"
"+`
"expDate": "2024-04-09"`+"
"+`
},`+"
"+`
"processor": "TCH",`+"
"+`
"senderType": "BUSINESS",`+"
"+`
"debtorAccount": {`+"
"+`
"institution": {`+"
"+`
"identification": "234567891",`+"
"+`
"name": "TCH",`+"
"+`
"identificationType": "ABA"`+"
"+`
},`+"
"+`
"identification": "652543123165",`+"
"+`
"identificationType": "ACCOUNT_NUMBER"`+"
"+`
},`+"
"+`
"debtor": {`+"
"+`
"firstName": "fayaz",`+"
"+`
"lastName": "Saeed",`+"
"+`
"identification": "134222322",`+"
"+`
"middleName": "",`+"
"+`
"identificationType": "SSN",`+"
"+`
"userType": "INDIVIDUAL"`+"
"+`
},`+"
"+`
"creditorAccount": {`+"
"+`
"institution": {`+"
"+`
"identification": "101115399",`+"
"+`
"name": "ITALBANK",`+"
"+`
"identificationType": "ABA"`+"
"+`
},`+"
"+`
"identification": "200812498478915",`+"
"+`
"identificationType2": "CHECKING",`+"
"+`
"identificationType": "ACCOUNT_NUMBER"`+"
"+`
},`+"
"+`
"creditor": {`+"
"+`
"firstName": "Hafiz",`+"
"+`
"lastName": "Saeed",`+"
"+`
"identification": "254178554",`+"
"+`
"middleName": "",`+"
"+`
"identificationType": "SSN",`+"
"+`
"userType": "INDIVIDUAL"`+"
"+`
},`+"
"+`
"creditorContact": {`+"
"+`
"primaryPhone": "1253674563",`+"
"+`
"primaryEmail": "steve-woz@rtp-tp.com"`+"
"+`
},`+"
"+`
"creditorPostalAddress": {`+"
"+`
"zipCode": "66614",`+"
"+`
"city": "Topeka",`+"
"+`
"addressType": "HOUSE",`+"
"+`
"countryCode": "840",`+"
"+`
"addressLine1": "2745 SW cross VILLA WEST",`+"
"+`
"addressLine2": "304 street",`+"
"+`
"state": "KS"`+"
"+`
}`+"
"+`
}`)
client := &http.Client {
}
req, err := http.NewRequest(method, url, payload)
if err != nil {
fmt.Println(err)
return
}
req.Header.Add("Content-Type", "application/json")
res, err := client.Do(req)
if err != nil {
fmt.Println(err)
return
}
defer res.Body.Close()
body, err := ioutil.ReadAll(res.Body)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(string(body))
}
var https = require('follow-redirects').https;
var fs = require('fs');
var options = {
'method': 'POST',
'hostname': '{{URL}}',
'path': '/PLMASTER/rpc/paymentv2',
'headers': {
'Content-Type': 'application/json'
},
'maxRedirects': 20
};
var req = https.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
var postData = JSON.stringify({
"notes": "Salary12478",
"product": "PL",
"program": "100000000541001",
"transactionDateTime": "2021-12-23 12:33:41",
"channel": "CLEARING_HOUSE",
"transactionType": "RTP_RFP_OUT",
"reference": "{{reference}}",
"transactionAmount": {
"amount": "200",
"currency": "USD"
},
"paymentInfo": {
"expDate": "2024-04-09"
},
"processor": "TCH",
"senderType": "BUSINESS",
"debtorAccount": {
"institution": {
"identification": "234567891",
"name": "TCH",
"identificationType": "ABA"
},
"identification": "652543123165",
"identificationType": "ACCOUNT_NUMBER"
},
"debtor": {
"firstName": "fayaz",
"lastName": "Saeed",
"identification": "134222322",
"middleName": "",
"identificationType": "SSN",
"userType": "INDIVIDUAL"
},
"creditorAccount": {
"institution": {
"identification": "101115399",
"name": "ITALBANK",
"identificationType": "ABA"
},
"identification": "200812498478915",
"identificationType2": "CHECKING",
"identificationType": "ACCOUNT_NUMBER"
},
"creditor": {
"firstName": "Hafiz",
"lastName": "Saeed",
"identification": "254178554",
"middleName": "",
"identificationType": "SSN",
"userType": "INDIVIDUAL"
},
"creditorContact": {
"primaryPhone": "1253674563",
"primaryEmail": "steve-woz@rtp-tp.com"
},
"creditorPostalAddress": {
"zipCode": "66614",
"city": "Topeka",
"addressType": "HOUSE",
"countryCode": "840",
"addressLine1": "2745 SW cross VILLA WEST",
"addressLine2": "304 street",
"state": "KS"
}
});
req.write(postData);
req.end();
Request Body (Applicable for both FedNow and RTP)
{
"notes": "Salary12478",
"product": "PL",
"program": "100000000541001",
"transactionDateTime": "2021-12-23 12:33:41",
"channel": "CLEARING_HOUSE",
"transactionType": "RTP_RFP_OUT",
"reference": "{{reference}}",
"transactionAmount": {
"amount": "200",
"currency": "USD"
},
"paymentInfo": {
"expDate": "2024-04-09"
},
"processor": "TCH",
"senderType": "BUSINESS",
"debtorAccount": {
"institution": {
"identification": "234567891",
"name": "TCH",
"identificationType": "ABA"
},
"identification": "652543123165",
"identificationType": "ACCOUNT_NUMBER"
},
"debtor": {
"firstName": "fayaz",
"lastName": "Saeed",
"identification": "134222322",
"middleName": "",
"identificationType": "SSN",
"userType": "INDIVIDUAL"
},
"creditorAccount": {
"institution": {
"identification": "101115399",
"name": "ITALBANK",
"identificationType": "ABA"
},
"identification": "200812498478915",
"identificationType2": "CHECKING",
"identificationType": "ACCOUNT_NUMBER"
},
"creditor": {
"firstName": "Hafiz",
"lastName": "Saeed",
"identification": "254178554",
"middleName": "",
"identificationType": "SSN",
"userType": "INDIVIDUAL"
},
"creditorContact": {
"primaryPhone": "1253674563",
"primaryEmail": "steve-woz@rtp-tp.com"
},
"creditorPostalAddress": {
"zipCode": "66614",
"city": "Topeka",
"addressType": "HOUSE",
"countryCode": "840",
"addressLine1": "2745 SW cross VILLA WEST",
"addressLine2": "304 street",
"state": "KS"
}
}
Response: 200
Response Parameters
Response Body (Applicable for both FedNow and RTP)
{
"id": "1",
"result": {
"api": {
"type": "RTP_RFP_OUT_ACK",
"reference": "1712637083888",
"dateTime": "2024-04-09 04:31:26"
},
"account": {
"accountId": "200812498478915",
"balanceCents": 123144041997035,
"holdBalanceCents": 200,
"status": "ACTIVE"
},
"transactionNumber": "QA00000003415001",
"transactionStatus": "PENDING",
"originalRequestBase64": "Base64 Value of Original Request",
"processId": "20240409043126000CBPL24040903320001"
},
"header": {
"reference": "1712637083888",
"apiKey": "cab8137f45ac44d7904164d1d14211bd",
"signature": "MEQCIG/+EDUNzpBhWA4JmZUMMqGFOSdFU4Q4OSwhu8oTV43UAiAIYH2mcd8JnC0D1/08zPj4Ll5AOSmC5WZP8y6Qpc5WWw=="
}
}